﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PROFIP.Persistence.DTO;

namespace PROFIP
{
    public partial class MainForm
    {
        private void buildCapa(PROFIPDTO profip)
        {
            profip.capa = new CapaDTO();
            profip.capa.DataInclusao = this.dataInclusao.Value;
            profip.capa.IniciaisDoente = this.iniciaisDoente.Text;
            profip.capa.Medico = this.Medico.Text;
        }

        private void loadCapa(PROFIPDTO profip)
        {
            this.dataInclusao.Value = profip.capa.DataInclusao;
            this.iniciaisDoente.Text = profip.capa.IniciaisDoente;
            this.Medico.Text = profip.capa.Medico;
        }
    }
}
